#include <stdio.h>

int findMax(int *arr, int size)
{
  int max = arr[0];
  for (int i = 1; i < size; i++)
  {
    if (arr[i] > max)
    {
      max = arr[i];
    }
  }
  return max;
}

int main()
{
  int arr[] = {11, 2, 3, 4, 5};
  int max = findMax(arr, sizeof(arr) / sizeof(arr[0]));
  printf("数组的最大值: %d\n", max);
  return 0;
}